package com.odontosis.util;

public class ChaveComposta {
	
	private Object chave1;
	
	private Object chave2;

	
	public ChaveComposta() {
		super();
	}

	public ChaveComposta(Object chave1, Object chave2) {
		super();
		this.chave1 = chave1;
		this.chave2 = chave2;
	}

	public Object getChave1() {
		return chave1;
	}

	public Object getChave2() {
		return chave2;
	}

	public void setChave1(Object chave1) {
		this.chave1 = chave1;
	}

	public void setChave2(Object chave2) {
		this.chave2 = chave2;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((chave1 == null) ? 0 : chave1.hashCode());
		result = prime * result + ((chave2 == null) ? 0 : chave2.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final ChaveComposta other = (ChaveComposta) obj;
		if (chave1 == null) {
			if (other.chave1 != null)
				return false;
		} else if (!chave1.equals(other.chave1))
			return false;
		if (chave2 == null) {
			if (other.chave2 != null)
				return false;
		} else if (!chave2.equals(other.chave2))
			return false;
		return true;
	}
	
	
	
	

}
